Use FIPS base images for amd64/arm64, standard images for s390x#7676
Use FIPS base images for amd64/arm64, standard images for s390x#7676
Conversation
|
This pull request enables the building of FIPS-compliant Docker images for Files Changed Analysis\
Architecture & Impact Assessment\
|
Security Issues (3)
Architecture Issues (2)
Performance Issues (1)
Quality Issues (2)
Powered by Visor from Probelabs Last updated: 2026-01-16T13:15:41.859Z | Triggered by: pr_updated | Commit: e8d99f3 💡 TIP: You can chat with Visor using |
|
API Changes no api changes detected |
The FIPS base image (tykio/dhi-debian-base:trixie-debian13-fips) only supports amd64 and arm64 platforms. This change uses Docker's TARGETARCH to conditionally select the appropriate base image, allowing s390x builds to continue using the original debian/distroless images. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add fips-amd64 and fips-arm64 build targets with boringcrypto - Add tyk-gateway-fips nfpm package configuration - Add FIPS publisher for packagecloud - Add FIPS Docker image build steps for CI and production - FIPS images built for amd64/arm64 only, pushed to tykio/tyk-gateway-fips Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🚨 Jira Linter FailedCommit: The Jira linter failed to validate your PR. Please check the error details below: 🔍 Click to view error detailsNext Steps
This comment will be automatically deleted once the linter passes. |
|


Description
This PR adds FIPS-compliant Docker images for the Tyk Gateway, including both base image changes and a separate FIPS product line.
Changes
1. Conditional Base Images (Dockerfiles)
Dockerfile.stdandDockerfile.distrolessnow use FIPS-compliant base images (tykio/dhi-debian-base:trixie-debian13-fips) for amd64/arm64amd64tykio/dhi-debian-base:trixie-debian13-fipsarm64tykio/dhi-debian-base:trixie-debian13-fipss390xdebian:trixie-slim/gcr.io/distroless/base-debian12:latest2. Separate FIPS Product Images (goreleaser + workflow)
fips-amd64andfips-arm64build targets with-tags=goplugin,ee,fips,boringcryptoandGOEXPERIMENT=boringcryptotyk-gateway-fipspackage (.deb/.rpm)tykio/tyk-gateway-fips(amd64/arm64 only)Problem Solved
The original attempt to use FIPS base images unconditionally failed because the FIPS base image only supports amd64/arm64, but the CI builds for s390x as well:
This PR solves this by:
TARGETARCHfor conditional base image selectionTest Plan
tyk-gateway-fipspackage is built correctlytykio/tyk-gateway-fipsDocker images are pushed (on tag release)🤖 Generated with Claude Code